﻿<%@ Page Title="Disciplinas por Professor" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="ControleDisciplinasPorProfessor.aspx.cs" Inherits="AcadPosApp.Cadastros.ControleDisciplinasPorProfessor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript">

        function SelecionaTodosChecks(spanChk) {

            var oItem = spanChk.children;

            var theBox = (spanChk.type == "checkbox") ? spanChk : spanChk.children.item[0];

            xState = theBox.checked;

            elm = theBox.form.elements;

            for (i = 0; i < elm.length; i++)

                if (elm[i].type == "checkbox" && elm[i].id != theBox.id) {
                    if (elm[i].checked != xState)

                        elm[i].click();
                }
        }
        function MascaraMoeda(objTextBox, SeparadorMilesimo, SeparadorDecimal, e) {
            var sep = 0;
            var key = '';
            var i = j = 0;
            var len = len2 = 0;
            var strCheck = '0123456789';
            var aux = aux2 = '';
            var whichCode = (window.Event) ? e.which : e.keyCode;
            if (whichCode == 13) return true;
            key = String.fromCharCode(whichCode); // Valor para o código da Chave 
            if (strCheck.indexOf(key) == -1) return false; // Chave inválida 
            len = objTextBox.value.length;
            for (i = 0; i < len; i++)
                if ((objTextBox.value.charAt(i) != '0') && (objTextBox.value.charAt(i) != SeparadorDecimal)) break;
            aux = '';
            for (; i < len; i++)
                if (strCheck.indexOf(objTextBox.value.charAt(i)) != -1) aux += objTextBox.value.charAt(i);
            aux += key;
            len = aux.length;
            if (len == 0) objTextBox.value = '';
            if (len == 1) objTextBox.value = '0' + SeparadorDecimal + '0' + aux;
            if (len == 2) objTextBox.value = '0' + SeparadorDecimal + aux;
            if (len > 2) {
                aux2 = '';
                for (j = 0, i = len - 3; i >= 0; i--) {
                    if (j == 3) {
                        aux2 += SeparadorMilesimo;
                        j = 0;
                    }
                    aux2 += aux.charAt(i);
                    j++;
                }
                objTextBox.value = '';
                len2 = aux2.length;
                for (i = len2 - 1; i >= 0; i--)
                    objTextBox.value += aux2.charAt(i);
                objTextBox.value += SeparadorDecimal + aux.substr(len - 2, len);
            }
            return false;
        } 
    </script>
    <style type="text/css">
        .style1
        {
            width: 463px;
        }
        .style2
        {
            width: 451px;
        }
        .style3
        {
            width: 302px;
        }
        .style4
        {
            width: 319px;
        }
        .style5
        {
            width: 100%;
        }
        .style6
        {
            width: 461px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlPesquisa" runat="server" GroupingText="Consultas de Cursos">
                <table class="form-inline">
                    <tr>
                        <td class="style2">
                            Áreas de Conhecimento
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:DropDownList ID="ddlAreaConhecimento" runat="server" Width="300px" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlAreaConhecimento_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            Descrição
                        </td>
                        <td style="font-weight: 700">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:TextBox ID="txtPesquisa" runat="server" MaxLength="250" Width="430px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="requiredPesquisa" runat="server" ControlToValidate="txtPesquisa"
                                ErrorMessage="É necessário preencher o campo pesquisa!" ForeColor="Red" ValidationGroup="pesquisa"
                                SetFocusOnError="True">*</asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Button ID="btnConsultar" runat="server" formnovalidate="formnovalidate" OnClick="btnConsultar_Click"
                                Text="Consultar" ValidationGroup="pesquisa" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwPesquisa" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                    DataKeyNames="ID_CURSO" EmptyDataText="Dados não localizados..." GridLines="Vertical"
                    Width="95%" OnRowDataBound="gvwPesquisa_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvwPesquisa_PageIndexChanging"
                    OnSelectedIndexChanged="gvwPesquisa_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True">
                            <ItemStyle Width="1%" />
                        </asp:CommandField>
                        <asp:BoundField DataField="ID_CURSO" HeaderText="Código">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DESCRICAO" HeaderText="Cursos">
                            <ItemStyle HorizontalAlign="Left" Width="75%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" Height="25px" Width="25px" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                            <ItemStyle Width="10%" HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <table class="form-inline">
                    <tr>
                        <td>
                            Currículo
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlCurriculoPesquisa" runat="server" AutoPostBack="True" Enabled="false"
                                OnSelectedIndexChanged="ddlCurriculoPesquisa_SelectedIndexChanged" Width="200px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <table class="form-inline">
                    <tr>
                        <td class="style1">
                            Estado
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:DropDownList ID="ddlEstadoPesquisa" runat="server" OnSelectedIndexChanged="ddlEstadoPesquisa_SelectedIndexChanged"
                                Width="80px" AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Polo
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:DropDownList ID="ddlPoloPesquisa" runat="server" Enabled="False" Width="440px"
                                AutoPostBack="True" OnSelectedIndexChanged="ddlPoloPesquisa_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="btnConsultarTurmas" runat="server" formnovalidate="formnovalidate"
                                Text="Consultar" ValidationGroup="pesquisa" OnClick="btnConsultarTurmas_Click" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwPesquisaTurmas" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                    DataKeyNames="ID_TURMA, ID_CURRICULO, ID_POLO, ID_PROFISSIONAL" EmptyDataText="Dados não localizados..."
                    GridLines="Vertical" OnRowCreated="gvwPesquisaTurmas_RowDataBound" OnRowDataBound="gvwPesquisaTurmas_RowDataBound"
                    AllowPaging="True" OnPageIndexChanging="gvwPesquisaTurmas_PageIndexChanging"
                    Width="1000px" OnSelectedIndexChanged="gvwPesquisaTurmas_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True">
                            <ItemStyle Width="1%" />
                        </asp:CommandField>
                        <asp:BoundField DataField="CURRICULO" HeaderText="Currículo">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DESCRICAO_MODULO" HeaderText="Módulo">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="COD_TURMA" HeaderText="Turma">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="QTD_PARCELAS" HeaderText="Qtde Parcelas">
                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="VALOR" HeaderText="Valor" DataFormatString="{0:c}">
                            <HeaderStyle HorizontalAlign="Center" Width="3%" />
                            <ItemStyle HorizontalAlign="Center" Width="3%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DATA_INICIO" HeaderText="Data Início">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DATA_FIM" HeaderText="Data Fim">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="NOME_PROFISSIONAL" HeaderText="Coordenador">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" Height="25px" Width="25px" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                            <ItemStyle Width="5%" HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
            </asp:Panel>
            <br />
            <asp:Panel ID="pnlDiscProfessor" runat="server" GroupingText="Disciplinas Cadastradas Por Professor"
                Visible="false">
                <asp:GridView ID="gvwDiscProfessor" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                    DataKeyNames="ID_DISCIPLINA,ID_PROFISSIONAL_DISCIPLINA,ID_PROFISSIONAL,ID_TURMA,ID_MATRIZ_CURRICULAR,LIBERAR_MATRICULA,CH_DISCIPLINA, CPF, RG,valor_titulacao"
                    EmptyDataText="Dados não localizados..." GridLines="Vertical" AllowPaging="True"
                    OnPageIndexChanging="gvwDiscProfessor_PageIndexChanging" Width="1000px" OnRowCommand="gvwDiscProfessor_RowCommand"
                    OnRowCreated="gvwDiscProfessor_RowCreated" OnRowDataBound="gvwDiscProfessor_RowDataBound"
                    OnSelectedIndexChanged="gvwDiscProfessor_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True">
                            <ItemStyle Width="1%" />
                        </asp:CommandField>
                        <asp:TemplateField>
                            <HeaderStyle Width="1%" HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" Font-Size="11px" Width="30px" />
                            <HeaderTemplate>
                                <asp:CheckBox ID="CheckAll" runat="server" onclick="javascript:SelecionaTodosChecks(this)" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" TextAlign="Left" HorizontalAlign="Center" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Excluir" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Excluir">
                                    <asp:ImageButton ID="Excluir" formnovalidate="formnovalidate" runat="server" CausesValidation="false"
                                        OnClientClick="return ShowConfirm('Tem certeza que deseja excluir?', this.ID);"
                                        CommandName="Excluir" ImageUrl="~/Imagens/delete.png" Text="Excluir" Width="20px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="NOME_DISCIPLINA" HeaderText="Disciplina">
                            <HeaderStyle HorizontalAlign="Center" Width="30%" />
                            <ItemStyle HorizontalAlign="Left" Width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="descricao_nivel_titulacao" HeaderText="Titulação">
                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            <ItemStyle HorizontalAlign="Left" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PROFISSIONAL" HeaderText="Docente">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Left" Width="20%" />
                        </asp:BoundField>
                        <%-- <asp:BoundField DataField="SITUACAO_DOCUMENTACAO" HeaderText="Documentação">
                    <HeaderStyle HorizontalAlign="Center" Width="14%" />
                    <ItemStyle HorizontalAlign="Center" Width="14%" />
                </asp:BoundField>--%>
                        <asp:BoundField DataField="DATA_RECEPCAO_DIARIO" HeaderText="Dt.Entrega Diário">
                            <HeaderStyle HorizontalAlign="Center" Width="14%" />
                            <ItemStyle HorizontalAlign="Center" Width="14%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Declaração" ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="btnDeclaracao" formnovalidate="formnovalidate" CausesValidation="false"
                                    CommandName="Declaracao" Text="Imprimir" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Diário" ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="btnReceberDiario" formnovalidate="formnovalidate" CausesValidation="false"
                                    CommandName="ReceberDiario" Text="Recebido" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Recibo" ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="btnRecibo" formnovalidate="formnovalidate" CausesValidation="false"
                                    CommandName="Recibo" Text="Recibo" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnInserir" runat="server" Text="Inserir" formnovalidate="formnovalidate"
                        OnClick="btnInserir_Click" />
                    <asp:Button ID="btnCancelar" formnovalidate="formnovalidate" runat="server" Text="Cancelar"
                        OnClick="btnCancelar_Click" />
                    <asp:Button ID="btnValorTitulacao" runat="server" formnovalidate="formnovalidate"
                        Text=" Valor Titulação" OnClick="btnValorTitulacao_Click" />
                    <asp:Button ID="btnLiberarBloquear" runat="server" formnovalidate="formnovalidate"
                        Text="Liberar/Bloquear" OnClick="btnLiberarBloquear_Click" />
                    <asp:Button ID="btnCadCronograma" runat="server" formnovalidate="formnovalidate"
                        Text="Cadastro Cronograma" OnClick="btnCadCronograma_Click" />
                </div>
            </asp:Panel>
            <br />
            <br />
            <asp:Panel ID="pnlCadDiscProfessor" runat="server" GroupingText="Cadastro de Disciplinas por Professor"
                Visible="False">
                <table class="form-inline">
                    <tr>
                        <td class="style3">
                            Disciplina:&nbsp;
                            <asp:Label ID="lblDisciplina" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <table class="form-inline">
                    <tr>
                        <td class="style4">
                            <asp:Label ID="Label1" runat="server" Text="Descrição"></asp:Label>
                            <br />
                            <asp:TextBox ID="txtPesqProfissional" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
                        </td>
                        <td>
                            <br />
                            <asp:Button ID="btnConsultaProfissional" runat="server" Text="Consultar" OnClick="btnConsultaProfissional_Click" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwProfissionais" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="mGrid" EmptyDataText="Dados não localizados..." GridLines="Vertical"
                    OnPageIndexChanging="gvwProfissionais_PageIndexChanging" OnRowDataBound="gvwProfissionais_RowDataBound"
                    Width="95%" DataKeyNames="ID_PROFISSIONAL" OnSelectedIndexChanged="gvwProfissionais_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True" />
                        <asp:BoundField DataField="NOME" HeaderText="Nome">
                            <ItemStyle HorizontalAlign="Left" Width="85%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" Height="25px" Width="25px" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situacao">
                            <ItemStyle HorizontalAlign="Center" Width="25%" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <table class="form-inline">
                    <tr>
                        <td class="style4">
                            <asp:Label ID="Label2" runat="server" Text="Titulação"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlDropTitulacao" runat="server" Width="290px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnConfirmarDiscProfessor" runat="server" Text="Confirmar" OnClick="btnConfirmarDiscProfessor_Click" />
                    <asp:Button ID="btnCancelarDiscProfessor" runat="server" Text="Cancelar" OnClick="btnCancelarDiscProfessor_Click" />
            </asp:Panel>
            <asp:Panel ID="pnlValorTitulacao" runat="server" GroupingText="Cadastro Valor de Titulação"
                Visible="False">
                <table class="form-inline">
                    <tr>
                        <td class="style3">
                            Disciplina:&nbsp;
                            <asp:Label ID="lblDisciplinaVlTitulacao" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <br />
                <table class="form-inline">
                    <tr>
                        <td class="style4">
                            <asp:Label ID="Label5" runat="server" Text="Valor Titulação"></asp:Label>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            <asp:TextBox ID="txtValor" runat="server" onKeyPress="return(MascaraMoeda(this,'.',',',event))"
                                required="" Width="120px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnConfirmarValorTitulacao" runat="server" Text="Confirmar" OnClick="btnConfirmarValorTitulacao_Click" />
                    <asp:Button ID="btnCancelarValorTitulacao" formnovalidate="formnovalidate" runat="server"
                        Text="Cancelar" OnClick="btnCancelarValorTitulacao_Click" />
                </div>
            </asp:Panel>
            <br />
            <br />
            <asp:Panel ID="pnlCronogramaDisciplinas" runat="server" GroupingText="Cronograma de Aulas da Disciplina"
                Visible="False">
                <asp:GridView ID="gvwCronogramaDisciplina" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="mGrid" EmptyDataText="Nenhuma data cadastrada até o momento." GridLines="Vertical"
                    Width="200px" DataKeyNames="ID_CRONOGRAMA" OnPageIndexChanging="gvwCronogramaDisciplina_PageIndexChanging">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:BoundField DataField="DATA_AULA" HeaderText="Data Aula">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HORA_INICIO" HeaderText="Hora Início">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HORA_FIM" HeaderText="Hora Fim">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
            </asp:Panel>
            <asp:Panel ID="pnlCadastroCronograma" runat="server" GroupingText="Cadastro do Cronograma de Aulas de Disciplina"
                Visible="false">
                <table class="style5">
                    <tr>
                        <td class="style6">
                            Estado
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            <asp:DropDownList ID="ddlEstadoCadCrono" runat="server" OnSelectedIndexChanged="ddlEstadoCadCrono_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            Polo
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            <asp:DropDownList ID="ddlPoloCadCrono" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            Mês
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            <asp:DropDownList ID="ddlMesCadCrono" runat="server" OnSelectedIndexChanged="ddlMesCadCrono_SelectedIndexChanged"
                                AutoPostBack="True">
                                <asp:ListItem Value="">Selecione</asp:ListItem>
                                <asp:ListItem Value="1">Janeiro</asp:ListItem>
                                <asp:ListItem Value="2">Fevereiro</asp:ListItem>
                                <asp:ListItem Value="3">Março</asp:ListItem>
                                <asp:ListItem Value="4">Abril</asp:ListItem>
                                <asp:ListItem Value="5">Maio</asp:ListItem>
                                <asp:ListItem Value="6">Junho</asp:ListItem>
                                <asp:ListItem Value="7">Julho</asp:ListItem>
                                <asp:ListItem Value="8">Agosto</asp:ListItem>
                                <asp:ListItem Value="9">Setembro</asp:ListItem>
                                <asp:ListItem Value="10">Outubro</asp:ListItem>
                                <asp:ListItem Value="11">Novembro</asp:ListItem>
                                <asp:ListItem Value="12">Dezembro</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwCadCalendario" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="mGrid" EmptyDataText="Nenhuma data cadastrada até o momento." GridLines="Vertical"
                    Width="400px" DataKeyNames="ID_CALENDARIO,ID_CALENDARIO_HORARIO, ID_HORARIO">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True" />
                        <asp:BoundField DataField="DATA_AULA" HeaderText="Data Aula">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HORA_INICIO" HeaderText="Hora Início">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HORA_FIM" HeaderText="Hora Fim">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <br />
                <div class="legenda">
                    <asp:Button ID="btnConfirmarCadCronograma" runat="server" Text="Confirmar" OnClick="btnConfirmarCadCronograma_Click" />
                    <asp:Button ID="btnCancelarCadCronograma" formnovalidate="formnovalidate" runat="server"
                        Text="Cancelar" OnClick="btnCancelarCadCronograma_Click" />
                </div>
            </asp:Panel>
            <asp:ValidationSummary ID="VSPesquisa" runat="server" ShowMessageBox="True" ShowSummary="False"
                ValidationGroup="pesquisa" />
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="gvwDiscProfessor" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
